<me:UIMULG x:Class="WPFExcelReport.TLSMUL"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:FC="clr-namespace:WPFExcelReport;assembly=TICC_FUNCTIONS"  
                    x:Name="TV"
                    FTAUTOSUM="True"
                    SKEY1="MANDANT" 
                     KEY1="EN"
                    TKEY1="个数"
                    TCOUNT1="个数"
                    FontSize="14"
                    Loaded="Window_Loaded"
     >
    <me:UIMULG.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:SDKEYCONV x:Key="sv"/>
        <ucd:NOTConverter  x:Key="not"/>
    </me:UIMULG.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="Auto" />
        </Grid.RowDefinitions>  
        <StackPanel Grid.Row="0" >
            <WrapPanel >
                <TextBlock Text="{Binding Path=Counts}" Width="80"/>
                <CheckBox IsChecked="{Binding IsEnOnly,ElementName=TV}" Content="{Binding Source={Localization:Translate Word=未翻译}}"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=UI:}}"/>
                <TextBox Text="{Binding ART,ElementName=TV}" Width="100"/>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=查询}}" Click="QueryCommand"></Button>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=探索}}" Click="DiscoveryCommand"></Button>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=基础表}}" Click="BTDiscoveryCommand"></Button>
               
                <FC:TSFUC KEY="{Binding ART,ElementName=TV}"/>
            </WrapPanel>
            <WrapPanel>
                <Button   Click="CopyCommand" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/copy.png" />
                    </Button.Background>
                </Button>
                <TextBlock Text="{Binding Source={Localization:Translate Word=key:}}"/>
                <TextBox Text="{Binding KRS,ElementName=TV,Converter={StaticResource gb2312}}" Width="100"/>
            </WrapPanel>
            <WrapPanel> 
             <TextBlock   HorizontalAlignment="Left" Margin="3" 
                                   Text="{Binding Path=MLKEY, Converter={StaticResource ResourceKey=gb2312}}" VerticalAlignment="Center" Width="300" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=简体中文}}"></TextBlock>
                <TextBox   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=SCN,Converter={StaticResource ResourceKey=gb2312}}" VerticalAlignment="Center" Width="Auto" />
            </WrapPanel>
            <WrapPanel>
                <TextBlock>English</TextBlock>
            <ex:TXT72  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=EN, Converter={StaticResource ResourceKey=gb2312}}" 
                       TabIndex="1"
                      KeyUp="TextBox_KeyUp" VerticalAlignment="Center" Width="200" />
            <TextBlock Text="{Binding Source={Localization:Translate Word=EnterSave}}"/>
            
            </WrapPanel>
        
        </StackPanel>
        <DataGrid  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="1"
                   AutoGenerateColumns="False"
                    Name="dlgMaster"
                   EnableRowVirtualization="True"  
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                   HeadersVisibility="Column"                           
                   ScrollViewer.HorizontalScrollBarVisibility="Auto"
                   ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="0,0,0,0" 
                   >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ROWNID}" Header="{Binding Source={Localization:Translate Word=ROWNID}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=MLLOC}" Header="{Binding Source={Localization:Translate Word=程序}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=MLKEY, Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=关键字}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=EN}" Header="{Binding Source={Localization:Translate Word=英文}}"  Width="Auto" MinWidth="80"/>
                <DataGridTextColumn Binding="{Binding Path=SCN, Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=中文}}"  Width="Auto" MinWidth="80"/>
            </DataGrid.Columns>
        </DataGrid>
      
    </Grid>
</me:UIMULG>
